package demo9;

public class Test {
    public static void main(String[] args) {
        new C().func();
    }
}
interface A{
    int x=10;//默认的是public static final
}
class B{
    int x=20;
}

class C extends B implements A{
    public void func(){
        //System.out.println(x);----这样写就会产生歧义
        System.out.println(super.x+"  "+A.x);
    }
}